package com.fyw.magichome;

import android.app.Application;
import android.content.Context;

import com.ezvizuikit.open.EZUIKit;

/**
 * Created by FYW on 2017/9/18.
 */

public class MyApplication extends Application {

    private static Context context;

    @Override
    public void onCreate() {
        super.onCreate();
        //获取Context
        context = getApplicationContext();
        //初始化EZUIKit
        EZUIKit.initWithAppKey(this, Constants.appKey);
    }

    //返回
    public static Context getContextObject() {
        return context;
    }
}
